var name = 'tom'

export function fn() {
  console.log(name)
}
export const a = 3

/* 
模块在编译后存在闭包
(() => {
  var name = 'tom'

  function fn() {
    console.log(name)
  }
  const a = 3

  return {
    fn,
    a
  }
})()
*/